package com.neusoft.resturant.common.utils;

import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @author: Daniel
 * @date: 2023-11-16 15:11
 **/
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {

    @Override
    public void configure(WebSecurity web) throws Exception {
        //ignore
       //web.ignoring().antMatchers("/api/**","/css","/html");
        //ignore all api
        web.ignoring().antMatchers("/**","/css","/html");
    }
}
